#!/usr/bin/env python
# -*- coding: utf-8 -*- #

SITENAME = u'MediaGoblin'
SITEURL = 'http://mediagoblin.org'
FEED_DOMAIN = 'http://mediagoblin.org'
TIMEZONE = 'America/Chicago'
DEFAULT_LANG = u'en'
MARKUP = ('md', 'rst', 'html')
AUTHOR = u'Christopher Allan Webber'
TYPOGRIFY = (True)

# Content dirs 
#ARTICLE_DIR = ('entries/news')
#PATH = ('entries/news')
OUTPUT_PATH = ('output')
DELETE_OUTPUT_DIRECTORY = (True)
ARTICLE_EXCLUDES = (('pages',))

THEME = ('theme')
DEFAULT_PAGINATION = 10
STATIC_PATHS = (['static/blog_images', 'static/download', 'static/images', 'static/irclogs', 'static/videos', 'pages',])
TEMPLATE_PAGES = {"pages/404.html": "pages/404.html",
                  "pages/about.html": "pages/about.html",
                  "pages/campaign.html": "pages/campaign.html",   
                  "pages/campaign.es.html": "pages/campaign.es.html",   
                  "pages/join.html": "pages/join.html",
                  "pages/logo.html": "pages/logo.html",
                  "pages/tour.html": "pages/tour.html"}
PLUGIN_PATH = "plugins"
PLUGINS = ["html_rst_directive",]

ARTICLE_URL = "news/{slug}.html"
ARTICLE_SAVE_AS = "news/{slug}.html"

DIRECT_TEMPLATES = ('index', 'blog')
PAGINATED_DIRECT_TEMPLATES = ('index', 'blog')

BLOG_SAVE_AS = 'news/index.html'
FILENAME_METADATA = "(?P<slug>.*)"

# Feeds, categories and tags
FEED_ALL_ATOM = 'news/index.xml'
CATEGORY_SAVE_AS = ('category/{slug}.html')
DEFAULT_CATEGORY = 'entry'
TAG_URL = ('tag/{slug}.html')
TAG_SAVE_AS = ('tag/{slug}.html')

# ONLY ENABLE RELATIVE URLS TO TEST - IT WILL HELP TO LOCALLY TEST THE THEME
# SET RELATIVE URLS TO FALSE BEFORE PUSHING TO PRODUCTION
RELATIVE_URLS = (False)
             
# External Links - these can be used to generate the menus
LINKS =  (('news', 'http://mediagoblin.org/news/index.html'),
          ('tour', 'http://mediagoblin.org/pages/tour.html'),
          ('community', 'http://mediagoblin.org/pages/join.html'),
          ('bug tracker', 'http://issues.mediagoblin.org'),
          ('git repository', 'http://gitorious.org/mediagoblin/mediagoblin'))

# Blogroll
# LINKS =  (('Pelican', 'http://docs.notmyidea.org/alexis/pelican/'),
#           ('Python.org', 'http://python.org'),
#           ('Jinja2', 'http://jinja.pocoo.org'),
#           ('You can modify those links in your config file', '#'),)

# Social widget
SOCIAL = (('Identi.ca', 'http://identi.ca/mediagoblin'),
          ('Twitter', 'http://twitter.com/mediagoblin'),)
